package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * ID更改记录对象 smart_id_change_record
 * 
 * @author minwei
 * @date 2022-04-07
 */
public class SmartIdChangeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 老产品编码 */
    @Excel(name = "老产品编码")
    private String oldProductCode;

    /** 新产品编码 */
    @Excel(name = "新产品编码")
    private String newProductCode;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOldProductCode(String oldProductCode) 
    {
        this.oldProductCode = oldProductCode;
    }

    public String getOldProductCode() 
    {
        return oldProductCode;
    }
    public void setNewProductCode(String newProductCode) 
    {
        this.newProductCode = newProductCode;
    }

    public String getNewProductCode() 
    {
        return newProductCode;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("oldProductCode", getOldProductCode())
            .append("newProductCode", getNewProductCode())
            .append("createDate", getCreateDate())
            .append("state", getState())
            .toString();
    }
}
